package com.infosys.cabplanning.common.domain;

import java.io.Serializable;

public class SelectTrip implements Serializable {

	private static final long serialVersionUID = -6922179432561056871L;
	private int scheduleId;
    private int driverId;
    private int cabId;
	/**
	 * @return the driverId
	 */
	public int getDriverId() {
		return driverId;
	}
	/**
	 * @param driverId the driverId to set
	 */
	public void setDriverId(int driverId) {
		this.driverId = driverId;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + cabId;
		result = prime * result + driverId;
		result = prime * result + scheduleId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SelectTrip other = (SelectTrip) obj;
		if (cabId != other.cabId)
			return false;
		if (driverId != other.driverId)
			return false;
		if (scheduleId != other.scheduleId)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Trip [tripId=" + scheduleId + ", driverId=" + driverId + ", cabId="
				+ cabId + "]";
	}
	
	public int getCabId() {
		return cabId;
	}
	public void setCabId(int cabId) {
		this.cabId = cabId;
	}
	public int getScheduleId() {
		return scheduleId;
	}
	public void setScheduleId(int scheduleId) {
		this.scheduleId = scheduleId;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
    
}
